package com.chang.dp.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class BaseEntity {
    @TableField(exist = false)
    @ApiModelProperty(value = "分页传参", required = false)
    PageDTO pagination;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    String createTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "创建时间开始", notes = "仅分页查询传")
    String createTimeStart;

    @TableField(exist = false)
    @ApiModelProperty(value = "创建时间结束", notes = "仅分页查询传")
    String createTimeEnd;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    String updateTime;
}
